package com.atguigu.srb.core.controller;


import com.atguigu.srb.core.service.IntegralGradeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 积分等级表 前端控制器
 * </p>
 *
 * @author 杜佳佳
 * @since 2021-04-13
 */
@Api(tags = "积分等级管理前端")
@CrossOrigin
@RestController
@RequestMapping("/api/core/integralGrade")
public class IntegralGradeController {

    @Autowired
    private IntegralGradeService integralGradeService;

    @ApiOperation("根据id获取积分等级信息")
    @GetMapping("/info/{id}")
    public void info(@ApiParam("积分等级id") @PathVariable Long id) {

        System.out.println(integralGradeService.getById(id));
    }

}

